<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
/**
 * 微信支付配置
 */
/**
 * 微信app 支付
 */
define("APP_WEIXIN_APPID", "wx8db2b5b2e09dbbec");
define("APP_WEIXIN_APPSECRET", "146ea685b242f9e6254080a567254959");
define("APP_WEIXIN_MCHID", "1488128412");
define("APP_WEIXIN_KEY", "hxxh2017hxxh2017hxxh2017hxxh2017");

/**
 * 微信公众号 支付
 */
define("HAO_WEIXIN_APPID", "wx25375196215df52b");
define("HAO_WEIXIN_APPSECRET", "4963c9528c377e6e3e00fb1c3ab44665");
define("HAO_WEIXIN_MCHID", "1366495702");
define("HAO_WEIXIN_KEY", "pJUOVQyAPgj3I18PwWHjDw5pqvRInW1I");

/**
 * 个推配置
 *///http的域名
define('GETUI_HOST', 'http://sdk.open.api.igexin.com/apiex.htm');
define('GETUI_APPKEY', '387w4CDzCUA2qzOhkvTaO7');
define('GETUI_APPID', 'IbYzbNeUhEAhqKUZuomaE5');
define('GETUI_MASTERSECRET', 'SvMVFPGu6x7xvjvP54Yi83');
define('GETUI_CID', '');
define('GETUI_DEVICETOKEN', '');
define('GETUI_Alias', '');

/**
 * OSS 配置
 */

define("ALI_OSS_APPID", "LTAIMIJ6zHbzebhu");#
define("ALI_OSS_APPSECRECT", "WrVGQiJfxdiG6IMq61IVbyvOKEYfqa");#
define("ALI_OSS_BUCKET", "xtaoyuan2018");#
define("ALI_OSS_ENDPOINT", "http://oss-cn-beijing.aliyuncs.com");#


return [
    // +----------------------------------------------------------------------
    // | 应用设置
    // +----------------------------------------------------------------------

    // 应用调试模式
    'app_debug' => true,
    // 应用Trace
    'app_trace' => true,
    // 应用模式状态
    'app_status' => '',
    // 是否支持多模块
    'app_multi_module' => true,
    // 入口自动绑定模块
    'auto_bind_module' => false,
    // 注册的根命名空间
    'root_namespace' => [],
    // 扩展函数文件
    'extra_file_list' => [THINK_PATH . 'helper' . EXT],
    // 默认输出类型
    'default_return_type' => 'html',
    // 默认AJAX 数据返回格式,可选json xml ...
    'default_ajax_return' => 'json',
    // 默认JSONP格式返回的处理方法
    'default_jsonp_handler' => 'jsonpReturn',
    // 默认JSONP处理方法
    'var_jsonp_handler' => 'callback',
    // 默认时区
    'default_timezone' => 'PRC',
    // 是否开启多语言
    'lang_switch_on' => false,
    // 默认全局过滤方法 用逗号分隔多个
    'default_filter' => '',
    // 默认语言
    'default_lang' => 'zh-cn',
    // 应用类库后缀
    'class_suffix' => false,
    // 控制器类后缀
    'controller_suffix' => false,

    // +----------------------------------------------------------------------
    // | 模块设置
    // +----------------------------------------------------------------------

    // 默认模块名
    'default_module' => 'index',
    // 禁止访问模块
    'deny_module_list' => ['common'],
    // 默认控制器名
    'default_controller' => 'Index',
    // 默认操作名
    'default_action' => 'index',
    // 默认验证器
    'default_validate' => '',
    // 默认的空控制器名
    'empty_controller' => 'Error',
    // 操作方法后缀
    'action_suffix' => '',
    // 自动搜索控制器
    'controller_auto_search' => false,

    // +----------------------------------------------------------------------
    // | URL设置
    // +----------------------------------------------------------------------

    // PATHINFO变量名 用于兼容模式
    'var_pathinfo' => 's',
    // 兼容PATH_INFO获取
    'pathinfo_fetch' => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
    // pathinfo分隔符
    'pathinfo_depr' => '/',
    // URL伪静态后缀
    'url_html_suffix' => 'html',
    // URL普通方式参数 用于自动生成
    'url_common_param' => false,
    // URL参数方式 0 按名称成对解析 1 按顺序解析
    'url_param_type' => 0,
    // 是否开启路由
    'url_route_on' => true,
    // 路由使用完整匹配
    'route_complete_match' => false,
    // 路由配置文件（支持配置多个）
    'route_config_file' => ['route'],
    // 是否强制使用路由
    'url_route_must' => false,
    // 域名部署
    'url_domain_deploy' => false,
    // 域名根，如thinkphp.cn
    'url_domain_root' => '',
    // 是否自动转换URL中的控制器和操作名
    'url_convert' => true,
    // 默认的访问控制器层
    'url_controller_layer' => 'controller',
    // 表单请求类型伪装变量
    'var_method' => '_method',
    // 表单ajax伪装变量
    'var_ajax' => '_ajax',
    // 表单pjax伪装变量
    'var_pjax' => '_pjax',
    // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
    'request_cache' => false,
    // 请求缓存有效期
    'request_cache_expire' => null,
    // 全局请求缓存排除规则
    'request_cache_except' => [],

    // +----------------------------------------------------------------------
    // | 模板设置
    // +----------------------------------------------------------------------

    'template' => [
        // 模板引擎类型 支持 php think 支持扩展
        'type' => 'Think',
        // 模板路径
        'view_path' => '',
        // 模板后缀
        'view_suffix' => 'html',
        // 模板文件名分隔符
        'view_depr' => DS,
        // 模板引擎普通标签开始标记
        'tpl_begin' => '{',
        // 模板引擎普通标签结束标记
        'tpl_end' => '}',
        // 标签库标签开始标记
        'taglib_begin' => '{',
        // 标签库标签结束标记
        'taglib_end' => '}',
    ],

    // 视图输出字符串内容替换
    'view_replace_str' => [
        '__PUBLIC__' => '/static',
        '__APP_LUODI__' => '/static/app_luodi',
    ],
    // 默认跳转页面对应的模板文件
    'dispatch_success_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
    'dispatch_error_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',

    // +----------------------------------------------------------------------
    // | 异常及错误设置
    // +----------------------------------------------------------------------

    // 异常页面的模板文件
    'exception_tmpl' => THINK_PATH . 'tpl' . DS . 'think_exception.tpl',

    // 错误显示信息,非调试模式有效
    'error_message' => '页面错误！请稍后再试～',
    // 显示错误信息
    'show_error_msg' => false,
    // 异常处理handle类 留空使用 \think\exception\Handle
    'exception_handle' => '',

    // +----------------------------------------------------------------------
    // | 日志设置
    // +----------------------------------------------------------------------

    'log' => [
        // 日志记录方式，内置 file socket 支持扩展
        'type' => 'File',
        // 日志保存目录
        'path' => LOG_PATH,
        // 日志记录级别
        'level' => [],
    ],

    // +----------------------------------------------------------------------
    // | Trace设置 开启 app_trace 后 有效
    // +----------------------------------------------------------------------
    'trace' => [
        // 内置Html Console 支持扩展
        'type' => 'Html',
    ],

    // +----------------------------------------------------------------------
    // | 缓存设置
    // +----------------------------------------------------------------------

    'cache' => [
        // 驱动方式
        'type' => 'File',
        // 缓存保存目录
        'path' => CACHE_PATH,
        // 缓存前缀
        'prefix' => '',
        // 缓存有效期 0表示永久缓存
        'expire' => 0,
    ],

    // +----------------------------------------------------------------------
    // | 会话设置
    // +----------------------------------------------------------------------

    'session' => [
        'id' => '',
        // SESSION_ID的提交变量,解决flash上传跨域
        'var_session_id' => '',
        // SESSION 前缀
        'prefix' => 'think',
        // 驱动方式 支持redis memcache memcached
        'type' => '',
        // 是否自动开启 SESSION
        'auto_start' => true,
    ],

    // +----------------------------------------------------------------------
    // | Cookie设置
    // +----------------------------------------------------------------------
    'cookie' => [
        // cookie 名称前缀
        'prefix' => '',
        // cookie 保存时间
        'expire' => 0,
        // cookie 保存路径
        'path' => '/',
        // cookie 有效域名
        'domain' => '',
        //  cookie 启用安全传输
        'secure' => false,
        // httponly设置
        'httponly' => '',
        // 是否使用 setcookie
        'setcookie' => true,
    ],

    //分页配置
    'paginate' => [
        'type' => 'bootstrap',
        'var_page' => 'page',
        'list_rows' => 15,
    ],
    /**
     * 自定义配置
     */
    // 站点设置
    'site_url' => "http://www.linshengxian.com",
    /**
     * 支付宝配置
     */
    'alipay_partner' => "2088921711258808",//pid
    'alipay_appid' => "2018011801954592",//
    "alipay_rsa_public" => "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqT4HxiuePNqMpyd6ubMgdF5IQWzVg6rsDTV9gIjv9cofAyrAaJ/uZZxQXnSjVtgUU5Fgeu48Z6eq32LVsQcTA6JKee+t5CH2od6ssLAPvqQdn7E9IyBl+pTkWC3ZCduTfQtgf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HlEG/QeNs8ozZLDyz4B1jqrpHjD4uKH2RKjigpNwxSEeV0pnyVVJa5pSWbYrzBd8dMRlq+sx/Gq5Jw/I4U3S9WWQ+o8b3isUP/E+mtC6A9n8MG0x5m1Lu9sH+e4N4otKbANWxzwEPJSQKBgQDmqza9Q0xpxTkxX2mFK/UmD/CdMDyUez9OzLj4G2OxiX1cnIv4bZ4C1k2ZYvo21mNMBupHIpdlhvZtYfTreG5c5Nif9z+i6Bz5VS3XFjiSBfE5lfVSnFfdSwD7n7abm1cnmAE6wCVwGhusFBm3nJyUVmDYFeZwGvJQtUdf1nHQQA==",

    /**
     * 银联支付
     */
    'merId' => '802370248160509',
    'SDK_SIGN_CERT_PWD' => '160822',
    // 签名证书路径
    'SDK_SIGN_CERT_PATH' => '../application/common/vendor/Unionpay/assets/certs/acp_prod_sign.pfx',
    // 密码加密证书（这条一般用不到的请随便配）
    'SDK_ENCRYPT_CERT_PATH' => '../application/common/vendor/Unionpay/assets/certs/acp_prod_enc.cer',
    // 验签证书路径（请配到文件夹，不要配到具体文件）
    'SDK_VERIFY_CERT_DIR' => '../application/common/vendor/Unionpay/assets/certs/',


    'alidayu' => [
        'dayu_appkey' => 'LTAIn9EcTtv9cmWq',
        'dayu_secretKey' => 'DgUp5txiCxHehkE1nkO52kOE6lilZt',
        'dayu_template_send' => [
            'signname' => '新桃源',
            'templatecode' => 'SMS_90705016'
        ],
        'zitidian_quhuo' => [
            'signname' => '新桃源',
            'templatecode' => 'SMS_90590032'
        ],
        'gift_money' => [
            'signname' => '新桃源',
            'templatecode' => 'SMS_111895050'
        ],
        'since_notice' => [
            'signname' => '新桃源',
            'templatecode' => 'SMS_120115586'
        ],
        'take_delivery' => [
            'signname' => '新桃源',
            'templatecode' => 'SMS_120115590'
        ]
    ],
    'captcha' => [
        // 验证码字符集合
        'codeSet' => '0123456789',
        // 验证码字体大小(px)
        'fontSize' => 30,
        // 是否画混淆曲线
        'useCurve' => true,
        // 验证码位数
        'length' => 4,
        // 验证成功后是否重置
        'reset' => false
    ],

];
